@hover: #8fd0cc;
@theme-color: #1e90ff;
@title: #737373;
@text: #6f6f6f;
.dfc {
  display: flex;
  align-items: center;
}
.header-bg {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  transition: all 1.5s;
  font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei light, STHeiti,
    WenQuanYi Micro Hei, Helvetica, Arial, sans-serif;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.25);
  }
  &:hover {
    .bg {
      transform: scale(1.07);
    }
  }
  .bg {
    height: 32rem;
    transition: transform 0.5s ease-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .article-tit {
    max-width: 1000px;
    margin: 0 auto;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    z-index: 1;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.1rem;
  }
}
.content {
  max-width: 800px;
  padding: 0 10px;
  margin: 100px auto;
  .title {
    font-size: 23px;
    font-weight: 600;
    color: #737373;
    padding: 15px 0px;
    border-bottom: 1px solid #e6e5e5;
  }
  .last {
    font-size: 14px;
    color: #afafaf;
    text-decoration: none;
    margin-bottom: 30px;
  }
}
.share {
  padding: 20px 10px;
  margin-top: 30px;
  .dfc;
  justify-content: space-between;
  .reward {
    width: 36px;
    height: 36px;
    line-height: 16px;
    color: #2b2b2b;
    padding: 10px;
    position: relative;
    cursor: pointer;
    border-radius: 100%;
    border: 1px solid #2b2b2b;
    &:hover {
      box-shadow: 0 0 4px #333333;
    }
  }
  .share-left,
  .share-right {
    .dfc;
  }
  .tags {
    margin-left: 20px;
    .dfc;
    .anticon {
      color: @text;
    }
    .tag-list {
      margin: 0;
      display: flex;
      align-items: center;
      .tag-item {
        color: @text;
        margin: 0 5px;
        text-decoration: underline;
        cursor: pointer;
        transition: all 0.3s;
        &:hover {
          color: @hover;
        }
      }
    }
  }
  .share-box {
  }

  .like {
    user-select: none;
    margin-left: 15px;
    color: #9fe0dd;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
    .dfc;
    span {
      margin-left: 5px;
    }
    &:hover {
      color: #ff4646;
    }
  }
}
.comment {
  .control-comment {
    margin: 50px auto;
    padding: 15px 20px;
    border-radius: 2px;
    width: 160px;
    background: #ffffff;
    color: #6f6f6f;
    font-family: microsoft yahei;
    border: 1px solid #c7c7c7;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    .text {
      padding-left: 8px;
    }
  }
}
.qr {
  .dfc;
  .qr-img {
    text-align: center;
    img {
      margin: 0 10px;
      width: 120px;
      height: 120px;
    }
    p {
      color: #666666;
    }
  }
}
.open-message {
  margin: 50px 0;
  position: relative;
  background: #2b2b2b;
  padding: 10px 30px;
  border-radius: 3px;
  font-size: 14px;
  color: #fff;
  .dfc;
  justify-content: space-between;
  &::after {
    content: "";
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #2b2b2b;
    position: absolute;
    top: -8px;
    left: 48%;
  }
  a {
    color: #c5d2e0;
    &:hover {
      color: fade(#c5d2e0, 80%);
    }
  }
  .open-left {
    max-width: 670px;
  }
  .opern-right {
    .dfc;
    justify-content: center;
    i {
      display: block;
      font-family: fantasy;
      font-size: 20px;
      line-height: 27px;
      color: #ff7979;
      height: 27px;
      width: 27px;
      text-align: center;
    }
    background: #ffffff;
  }
}
.change-art {
  .dfc;
  justify-content: space-between;
  margin: 20px 0 50px;
  .prev-art,
  .next-art {
    cursor: pointer;
    font-size: 16px;
    &:hover {
      color: @hover;
    }
  }
}
.author {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .avatar {
    width: min-content;
    margin: 0 auto;
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 100%;
    cursor: pointer;
  }
  .author-text {
    font-family: din, "Hiragino Sans GB", "Microsoft Yahei", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1px;
    color: #ababab;
    margin-top: 15px;
    cursor: pointer;
  }
  .user-slogan {
    font-size: 13px;
    line-height: 30px;
    margin: 20px 0 25px;
    color: #7d8588;
    letter-spacing: 2px;
    display: inline-block;
    padding: 10px 20px;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    .dfc;
  }
  .slogan-icon {
    padding-right: 10px;
    color: #2d9c2d;
    font-size: 16px;
  }
  .ant-avatar {
    transition: all 0.3s;
  }
  .click-ani .ant-avatar {
    transform: scale(1.1, 1.1);
  }
}
.article {
  position: relative;
  blockquote:before,
  blockquote:after,
  q:before,
  q:after {
    content: "";
  }
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  .blockquote {
    margin: 0;
    padding: 30px 60px;
    background: #f9f9f9;
    position: relative;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
  }
  blockquote,
  q {
    quotes: "" "";
  }

  hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
  }
  ul {
    list-style: disc;
    padding: 5px 10px 5px 50px;
    color: #828282;
    margin-left: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  ol {
    list-style: decimal;
    padding: 5px 10px 5px 50px;
    color: #828282;
    margin-left: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  ol li,
  ul li {
    padding: 15px 0;
    border-top: 1px solid #ddd;
  }

  ol li:first-child,
  ul li:first-child {
    border-top: none;
  }
  .entry-header h1:before {
    content: "#";
    margin-right: 6px;
    color: #ff6d6d;
    font-size: 20px;
    font-weight: 600;
  }

  p {
    color: #565656;
    font-weight: 400;
  }

  p {
    line-height: 30px;
  }

  .entry-header hr {
    width: 100%;
    height: 1px;
    border: 0;
    background: #efefef;
    margin: 15px 0;
  }

  h2 {
    color: #737373;
    font-size: 20px;
  }
  h2::before {
    content: "[";
    margin-right: 5px;
    color: #ff6d6d;
    font-size: 25px;
  }
  h2::after {
    content: "]";
    margin-left: 5px;
    color: #ff6d6d;
    font-size: 25px;
  }

  h3 {
    color: #6d6c6c;
    background: #f9f9f9;
    padding: 10px 20px;
    border-left: 5px solid #c4e2ea;
    font-weight: normal;
    font-size: 16px;
    border-radius: 3px;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
  }

  h4,
  h5 {
    padding: 20px 35px;
    background: #fff6b5;
    color: #737373;
    font-weight: normal;
    border-radius: 3px;
    position: relative;
    padding-left: 60px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  }

  h5 {
    font-size: 16px;
    background: #c8e6fb;
  }

  h4:before,
  h5:before {
    font-family: "iconfont";
    font-size: 25px;
    content: "\e60b";
    color: #c7bf83;
    margin-right: 10px;
    position: absolute;
    left: 20px;
    top: 14px;
  }

  h5:before {
    content: "\e605";
    color: #7c9aaf;
  }

  pre {
    display: block;
    background-color: #f3f3f3;
    padding: 0.5rem !important;
    overflow-y: auto;
    font-weight: 300;
    font-family: Menlo, monospace;
    border-radius: 0.3rem;
    box-shadow: 0 0 12px 5px rgba(0, 0, 0, 0.4);
  }
  pre {
    background: #2d2d2d !important;
    border-radius: 5px;
  }
  pre > code {
    border: 0px !important;
    background-color: #2d2d2d !important;
    color: #fff;
  }
  code {
    display: inline-block;
    background-color: #f3f3f3;
    border: 1px solid #fdb9cc;
    border-radius: 3px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
    color: #4f4f4f;
    margin: 0px 3px;
  }
  a {
    color: #e67474;
    text-decoration: underline;
  }

  a:hover {
    color: #72c5a6;
  }
}
